 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
	<link rel="stylesheet" type="text/css" href="/css/mypage.css">
	
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script src="/js/utility/common_util.js" type="text/javascript"></script>
	<script src="/js/snsLinker.js" type="text/javascript"></script>
	<script type="text/javascript">
		function openResultHtml(result_html_url) {
			openPopup(result_html_url,800,1000);
		}	
	</script>
</head>
<body>
<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
	
	<!--컨텐츠-->
	<div id="content">
		<!--휘장-->
		<div class="keybox1">
		</div>
		<!--휘장-->

		<!--왼쪽 컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->
			
			<!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme.php'; ?>
			<!--//추천테마-->
			
			<!--오늘의 추천! 무료운세-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/free.php'; ?>
			<!--//오늘의 추천! 무료운세-->
			
			<!--후기게시판-->
			<?php echo $INC_POSTSCRIPT_LIST ?>
			<!--//후기게시판-->
			
			<!--회원배너-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/member_join.php'; ?>
			<!--//회원배너-->
		</div>
		<!--//왼쪽 컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="cont">
			<div class="mypage">
				<h3>마이페이지</h3>
				
				<!--가입상품 요약 정보 (include mypage/summary_inc.v.php-->
				<?php echo $INC_SUMMARY; ?>
				<!--//가입상품 요약 정보-->
				
				
				
				<div class="fortunelist">
					<h4 class="title">내가 본 운세</h4>
					<table width="100%" summary="내가 본 운세결과내역" cellpadding="0" cellspacing="0" >
						<caption class="blind">내가 본 운세결과 내역</caption>
						<colgroup>
							<col width="15%" />
							<col width="*" />
							<col width="15%" />
							<col width="30%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="date">날짜</th>
								<th scope="col" class="tle">서비스명</th>
								<th scope="col" class="replay">다시보기</th>
								<th scope="col" class="sns">공유하기</th>
							</tr>
						</thead>
						<!--내가본운세리스트가있을경우-->
						<tbody>
<?	foreach ($service_history_list as $item) : ?>
							<tr>
								<td class="date"><?=substr($item['create_dt'], 0,10)?></td>
								<td class="tle"><?=$item['service_name']?></td>
								<td class="replay"><a href="javascript:;" onclick="openResultHtml('<?=$item['result_html_url']?>')"><img src="/images/mypage/bt_replay.png" alt="다시보기" /></a></td>
								<td class="sns">
									<a href="javascript:;" onclick="snsLinker('twitter', '<?=$item['service_name']?>', '<?=$item['result_html_url']?>')"><img src="/images/common/bt_tw.png" alt="트위터" /></a>
									<a href="javascript:;" onclick="snsLinker('facebook', '<?=$item['service_name']?>', '<?=$item['result_html_url']?>')"><img src="/images/common/bt_fb.png" alt="페이스북" /></a>
									<a href="javascript:;" onclick="snsLinker('me2day', '<?=$item['service_name']?>', '<?=$item['result_html_url']?>')"><img src="/images/common/bt_mt.png" alt="미투데이" /></a>
								</td>
							</tr>
<? endforeach ?>
						</tbody>
						<!--//내가본운세리스트가있을경우(5개max)-->
					</table>
				</div><!--/fortunelist-->
						 
				 
				<div class="writelist">
					<h4 class="title">내가 작성한 게시물</h4>
					<table width="100%" summary="내가 작성한 게시물" cellpadding="0" cellspacing="0">
						<caption class="blind">내가 작성한 게시물</caption>
						<colgroup>
							<col width="*" />
							<col width="30%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="tle">제목</th>
								<th scope="col" class="date">작성일</th>
							</tr>
						</thead>
						<tbody>
						<?	foreach ($list as $item) :?>
							<tr>
								<td class="tle1"><a href="/bbs/<?=$item['category']?>/read?idx=<?=$item['idx']?>"><?=$item['subject']?></a></td>
								<td class="date"><?=substr($item['create_dt'], 0,10)?></td>	
							</tr>
						<?	endforeach ?>
						<?	if (count($list) == 0) :?>
							<tr>
								<td class="tle">작성한 글이 없습니다.</td>
								<td class="date">&nbsp;</td>	
							</tr>
						<?	endif ?>
						</tbody>
					</table>
				</div><!--//writelist--> 

				<div class="eventlist">
					<h4 class="title">참여한 이벤트</h4>
					<table width="100%" summary="결제내역 안내" cellpadding="0" cellspacing="0">
						<caption class="blind">결제내역 안내</caption>
						<colgroup>
							<col width="30%" />
							<col width="*" />
							<col width="30%" />
						</colgroup>
						<thead>
							<tr>
								<th scope="col" class="date">이벤트기간</th>
								<th scope="col" class="sum">이벤트명</th>
								<th scope="col" class="date">진행상황</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="date">&nbsp;</td>
								<td class="tle">참여한 이벤트가 없습니다.</td>
								<td class="pay">&nbsp;</td>	
							</tr>
							<!--
							<tr>
								<td class="date">2012-03-30<br />
								<em>~</em> 2012-04-29</td>
								<td class="tle"><a href="#">오픈축하 경품 FESTIVAL</a></td>
								<td class="pay">진행중</td>	
							</tr>
							<tr>
								<td class="date">2012-03-30<br />
								<em>~</em> 2012-04-29</td>
								<td class="tle"><a href="#">오픈축하 경품 FESTIVAL</a></td>
								<td class="pay">진행중</td>	
							</tr>
							-->
						</tbody>
					</table>
				</div><!--//eventlist--> 
			</div><!--mypage--> 
		</div>
		<!--// 메인컨텐츠-->
	</div>
	<!--컨텐츠-->

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
</body>
</html>